import $axios from "@/network";

/**
 * {获取字典表}
 * @param isParent
 * @param code
 * @param dictValue
 * @author: 宋康
 * @date: 2022/9/23 16:47
 */
export const queryDict = (code, dictValue, isParent) => {
  return $axios({
    method: 'POST',
    url: '/dict/query/list',
    data: {
      code, dictValue, isParent
    }
  })
}

/**
 * {获取字典表}
 * @param codes
 * @author: 宋康
 * @date: 2022/9/23 18:19
 */
export const queryDictList = (codes) => {
  return $axios({
    method: 'POST',
    url: '/dict/query/list/o',
    data: {
      codes
    }
  })
}